home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Shareware / Mockups for Desktop 1.5.27 / MockupsForDesktop.air / MockupsAir.swf / scripts / _WindowStyle.as < prev    next >
Encoding:
Text File  |  2009-03-03  |  3.4 KB  |  77 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ApplicationTitleBarBackgroundSkin;
  5.    import mx.skins.halo.StatusBarBackgroundSkin;
  6.    import mx.skins.halo.WindowBackground;
  7.    import mx.skins.halo.WindowCloseButtonSkin;
  8.    import mx.skins.halo.WindowMaximizeButtonSkin;
  9.    import mx.skins.halo.WindowMinimizeButtonSkin;
  10.    import mx.skins.halo.WindowRestoreButtonSkin;
  11.    import mx.styles.CSSStyleDeclaration;
  12.    import mx.styles.StyleManager;
  13.    
  14.    public class _WindowStyle
  15.    {
  16.       private static var _embed_css_Assets_swf_CloseButtonDisabled_1958652578:Class = _WindowStyle__embed_css_Assets_swf_CloseButtonDisabled_1958652578;
  17.       
  18.       private static var _embed_css_Assets_swf_CloseButtonDown_283556460:Class = _WindowStyle__embed_css_Assets_swf_CloseButtonDown_283556460;
  19.       
  20.       private static var _embed_css_Assets_swf_CloseButtonOver_446664054:Class = _WindowStyle__embed_css_Assets_swf_CloseButtonOver_446664054;
  21.       
  22.       private static var _embed_css_Assets_swf_CloseButtonUp_1520607741:Class = _WindowStyle__embed_css_Assets_swf_CloseButtonUp_1520607741;
  23.       
  24.       public function _WindowStyle()
  25.       {
  26.          super();
  27.       }
  28.       
  29.       public static function init(param1:IFlexModuleFactory) : void
  30.       {
  31.          var fbs:IFlexModuleFactory = param1;
  32.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Window");
  33.          if(!style)
  34.          {
  35.             style = new CSSStyleDeclaration();
  36.             StyleManager.setStyleDeclaration("Window",style,false);
  37.          }
  38.          if(style.defaultFactory == null)
  39.          {
  40.             style.defaultFactory = function():void
  41.             {
  42.                this.statusTextStyleName = "statusTextStyle";
  43.                this.minimizeButtonSkin = WindowMinimizeButtonSkin;
  44.                this.borderStyle = "solid";
  45.                this.gripperPadding = 3;
  46.                this.restoreButtonSkin = WindowRestoreButtonSkin;
  47.                this.closeButtonSkin = WindowCloseButtonSkin;
  48.                this.highlightAlphas = [1,1];
  49.                this.cornerRadius = 8;
  50.                this.titleBarBackgroundSkin = ApplicationTitleBarBackgroundSkin;
  51.                this.closeButtonOverSkin = _embed_css_Assets_swf_CloseButtonOver_446664054;
  52.                this.backgroundImage = WindowBackground;
  53.                this.borderThickness = 1;
  54.                this.buttonPadding = 2;
  55.                this.statusBarBackgroundColor = 13421772;
  56.                this.titleBarButtonPadding = 5;
  57.                this.buttonAlignment = "auto";
  58.                this.titleTextStyleName = "titleTextStyle";
  59.                this.borderColor = 10921638;
  60.                this.roundedBottomCorners = false;
  61.                this.titleAlignment = "auto";
  62.                this.closeButtonDisabledSkin = _embed_css_Assets_swf_CloseButtonDisabled_1958652578;
  63.                this.titleBarColors = [16777215,12237498];
  64.                this.showFlexChrome = true;
  65.                this.gripperStyleName = "gripperSkin";
  66.                this.closeButtonDownSkin = _embed_css_Assets_swf_CloseButtonDown_283556460;
  67.                this.closeButtonUpSkin = _embed_css_Assets_swf_CloseButtonUp_1520607741;
  68.                this.maximizeButtonSkin = WindowMaximizeButtonSkin;
  69.                this.backgroundColor = 12632256;
  70.                this.statusBarBackgroundSkin = StatusBarBackgroundSkin;
  71.             };
  72.          }
  73.       }
  74.    }
  75. }
  76.  
  77.